package org.jeecg.common.system.api.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 定时任务业务操作表
 * @Author: jeecg-boot
 * @Date:   2022-12-06
 * @Version: V1.0
 */
@Data
@TableName("timing_operate")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="timing_operate对象", description="定时任务业务操作表")
public class TimingOperate implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
	/**提醒事件id*/
	@Excel(name = "提醒事件id", width = 15)
    @ApiModelProperty(value = "提醒事件id")
    private String configId;
	/**提醒事件名称*/
	@Excel(name = "提醒事件名称", width = 15)
    @ApiModelProperty(value = "提醒事件名称")
    private String configName;
	/**提前多少天提醒*/
	@Excel(name = "提前多少天提醒", width = 15)
    @ApiModelProperty(value = "提前多少天提醒")
    private Integer noticeTime;
	/**通知方式*/
	@Excel(name = "通知方式", width = 15, dicCode = "notice_way")
	@Dict(dicCode = "notice_way")
    @ApiModelProperty(value = "通知方式")
    private String noticeWay;
	/**通知人*/
	@Excel(name = "通知人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "通知人")
    private String noticePeople;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private String tenantId;
	/**逻辑删除*/
    @TableLogic
	@Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    private Integer delFlag;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill= FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill=FieldFill.INSERT)
    private Date createTime;
	/**最后修改人*/
    @ApiModelProperty(value = "最后修改人")
    @TableField(fill=FieldFill.UPDATE)
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill=FieldFill.UPDATE)
    private Date updateTime;
	/**模块名称*/
	@Excel(name = "模块名称", width = 15)
    @ApiModelProperty(value = "模块名称")
    @Dict(dicCode = "model_name")
    private String modelName;
	/**当前登录部门*/
    @ApiModelProperty(value = "当前登录部门")
    private String sysOrgCode;
	/**启用/禁用*/
	@Excel(name = "启用/禁用", width = 15)
    @ApiModelProperty(value = "启用/禁用")
    private String statusFlag;
    
    @TableField(exist = false)
    private String messageTemplateCode;
    /**发送短信模板code*/
    @TableField(exist = false)
    @ApiModelProperty(value = "发送短信模板code")
    private String smsCode;
    /**消息数据来源url*/
    @TableField(exist = false)
    @ApiModelProperty(value = "消息数据来源url")
    private String configSourceUrl;
    
    @ApiModelProperty(value = "负责部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    private String departIds;
}
